using QFramework;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class GamePlayObject : ViewController
{
    public bool InScreen { get; set; }
    protected abstract Collider2D Collider2D { get; }
    private void OnBecameInvisible()
    {
        Collider2D.enabled = false;
        InScreen = false;
    }

    private void OnBecameVisible()
    {
        Collider2D.enabled = true;
        InScreen = true;
    }
}
